﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QImage>
#include <QLibrary>
#include <glm.hpp>
#include "wgl.h"
class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();
protected:
    QPaintEngine* paintEngine() const
    {return 0;}
    void paintEvent(QPaintEvent *event);
private:
    bool initGL();

    HWND m_wnd = nullptr;
    HDC m_dc = nullptr;
    QImage m_img;

    float m_point[9];
    GLuint vbo;
};

#endif // WIDGET_H
